package com.nengchuan.kbms.dfs.entity.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * <p>
 * 收藏 DTO
 * </p>
 *
 * @author abe
 * @since 2020-03-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "UserFavoriteDTO 对象", description = "用户收藏")
@ToString
public class UserFavoriteDTO {

    @ApiModelProperty(value = "文件（夹）")
    private List<BizDTO> biz;

    @NotNull(message = "用户收藏目录id不能为空")
    @ApiModelProperty(value = "用户文件夹id", position = 25)
    private Long userFolderId;

    @Size(max = 2000,message = "留言不能产于2000字符")
    @ApiModelProperty(value = "留言", position = 30)
    private String message;

    @NotEmpty(message = "收藏用户id不能为空")
    @ApiModelProperty(value = "收藏用户id", hidden = true)
    @JsonIgnore
    private String createId;

}
